package com.dayuanit.dy8.model.Single;

public class TestSigle {
    public static void main(String[] args) {
//        final Dog dog1 = Dog.createDog();
//        final Dog dog2 = Dog.createDog();
////
//        System.out.println(dog1 == dog2);

        final Bird bird1 = Bird.createBird();
        final Bird bird2 = Bird.createBird();

//        System.out.println(bird1 == bird2);

        Panda panda1 = Panda.INSTANCE;
        Panda panda2 = Panda.INSTANCE;

        System.out.println(panda1 == panda2);
        panda1.move();
        System.out.println(panda1.name);
    }
}
